package com.yyx.app1.DiagnosticTools_function.Control.ViewPager.ViewPagerItemControl.fourthControl;

import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.webkit.WebView;
import android.widget.LinearLayout;
import android.widget.ListView;

import com.yyx.app1.DiagnosticTools_function.Control.ViewPager.ViewPagerItemControl.fourthControl.ImmobilizationListView.Immobilization_ListView_diagnostictools_Fourth_Function_Adapter;
import com.yyx.app1.R;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by yuexing on 2015/9/14.
 */
@EViewGroup(R.layout.view_stoolroutine)
public class StoolRoutine_View extends LinearLayout {
    private Context context;
    @ViewById
    ListView StoolRoutine_View_listview;

    public StoolRoutine_View(Context context) {
        super(context);
        this.context=context;
    }

    public StoolRoutine_View(Context context, AttributeSet attrs) {
        super(context, attrs);
        this.context=context;
    }

    public StoolRoutine_View(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.context=context;
    }

    @AfterViews
    public void inti()
    {
        Immobilization_ListView_diagnostictools_Fourth_Function_Adapter adapter=new Immobilization_ListView_diagnostictools_Fourth_Function_Adapter(context);
        adapter.findAll();
        StoolRoutine_View_listview.setAdapter(adapter);
        StoolRoutine_View_listview.setOverScrollMode(OVER_SCROLL_NEVER);
    }

}
